/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 张宇田
 * Date: 2024-09-26
 * Time: 18:58
 */
public class Student {
    public String name;
    public String gender;
    public int age;
    public double score;
    public static String classRoom ;
    static {
        classRoom = "Bit306";
    }
    // ...
    public static void main(String[] args) {
// 静态成员变量可以直接通过类名访问
        System.out.println(Student.classRoom);
    }
}